/*
 * main.cpp
 *
 *  Created on: 15/07/2008
 *      Author: Samuk
 */

#include <SDL/SDL.h>
#include "StickBombers.h"

int main(int argc, char **argv) {

	StickBombers* pGame = StickBombers::Instance();

	if (pGame->OnInitialize() == false) {
		return -1;
	}

	SDL_Event event;

	while (pGame->Rodando) {
		while (SDL_PollEvent(&event)) {
			pGame->OnEvent(&event);
		}
		pGame->OnLoop();
		pGame->OnRender();
		pGame->ExecutaLimpeza();
	}

	pGame->OnCleanup();
	return 0;
}

